import { useMutation } from "@tanstack/react-query";
import { request } from "../api/request";
import { PLAN_URL } from "../constants/url";
const delFn = async (e) => {
  const { data } = await request(
    {
      url: e.url,
      method: "delete",
    },
    true
  );

  //
  return {
    data,
  };
};
export default function useDelBlog(e) {
  return useMutation(["deleteblog", e], delFn);
}
